package dkzcm.club.article.common.entity;

/**
 * @desc: 分页请求实体
 * @author: xk
 * @version: 1.0
 * Create by 2024/12/13 21:26
 */

public class PageInfo {
    private Integer pageNo = 1;
    private Integer pageSize = 10;

    public Integer getPageNo() {
        if (pageNo == null || pageNo < 1) {
            return 1;
        }
        return pageNo;
    }

    public Integer getPageSize() {
        if (pageSize == null || pageSize < 1 || pageSize > Integer.MAX_VALUE) {
            return 10;
        }
        return pageSize;
    }
}
